import request from "../utils/request.js"


export const noScreenList=(categoryId)=>{//未点击筛选药神卡商品
    return request.get(`/yd/es/esSearch?searchCondition=&categoryId=${categoryId}&salesTotal=Y&pageIndex=1&pageSize=20`)
}

export const screenList=(categoryId)=>{//点击筛选要药神卡商品
    return request.get(`/yd/es/esSearch?searchCondition=&categoryId=${categoryId}&salesTotal=Y&pageIndex=1&pageSize=20&useHealthyCard=1`)
}

export const noRankList=(categoryId,number)=>{//未点击筛选药神卡  价格排序
    return request.get(`/yd/es/esSearch?searchCondition=&categoryId=${categoryId}&isAscending=${number}&salesTotal=&pageIndex=1&pageSize=20`)
}

export const rankList=(categoryId,number)=>{//点击筛选药神卡  价格排序
    return request.get(`/yd/es/esSearch?searchCondition=&categoryId=${categoryId}&isAscending=${number}&salesTotal=&pageIndex=1&pageSize=20&useHealthyCard=1`)
}